package com.example.common.model;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

public class Emp implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer id;
    //名字
    @NotBlank
    private String name;
    //岗位
    @NotBlank
    private String postName;
    //级别
    @NotBlank
    private String jobLevelName;
    //部门
    @NotBlank
    private String departmentName;
    //邮箱
    @Email
    @NotBlank
    private String email;

    public Emp() {
    }

    public Emp(String name, String postName, String jobLevelName, String departmentName, String email) {
        this.name = name;
        this.postName = postName;
        this.jobLevelName = jobLevelName;
        this.departmentName = departmentName;
        this.email = email;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPostName() {
        return postName;
    }

    public void setPostName(String postName) {
        this.postName = postName;
    }

    public String getJobLevelName() {
        return jobLevelName;
    }

    public void setJobLevelName(String jobLevelName) {
        this.jobLevelName = jobLevelName;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }
}
